package top.heathylife.gateway.common.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 对外调用的api标准返回api
 *
 * @author maoxiaomeng
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "一个基础接口的请求参数")
public class ParentApiPo {

    @ApiModelProperty(required = true, value = "api的名字")
    String apiName;
    @ApiModelProperty(required = true, value = "简称")
    String shortName;
    @ApiModelProperty(required = true, value = "接口状态，如果第三方不可用，直接禁掉此状态即可")
    Boolean status;
    @ApiModelProperty(value = "接口上一次失效时间")
    Long expiresTime;
    @ApiModelProperty(value = "接口价格,默认为分")
    Long price;
    @ApiModelProperty(value = "接口解释")
    String info;
    @ApiModelProperty(value = "源文档地址")
    String docUrl;
    @ApiModelProperty(value = "接口的入参请求对象类型")
    String cls;
    @ApiModelProperty(value = "接口的出参对象类型")
    String resCls;
    @ApiModelProperty(value = "接口更新时间")
    LocalDateTime apiUpdateTime;
    @ApiModelProperty(value = "所属系统名称")
    String systemName;
    @ApiModelProperty(required = true, value = "api的请求参数")
    List<ApiParameterPo> parameters;

}
